import Mock from "mockjs";
const LoginUsers = [
  {
    id: 1,
    username: "admin",
    password: "123456",
    avatar:
      "https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png",
    name: "张某某"
  }
];

//用户列表
const Users = [];

for (let i = 0; i < 86; i++) {
  Users.push(
    Mock.mock({
      id: Mock.Random.guid(),
      name: Mock.Random.cname(),
      addr: Mock.mock("@county(true)"),
      "age|18-60": 1, //属性|规则： 值
      birth: Mock.Random.date(),
      sex: Mock.Random.integer(0, 1)
    })
  );
}
// 通过向大括号中添加LoginUsers, Users ，变量并且export输出，就可以将对应变量值以LoginUsers, Users 变量标识符形式暴露给其他文件而被读取到
export { LoginUsers, Users };
